package exe3;

/**
 * @author oldliu
 * @since 1.0
 */
public class Dog {
    String name;
    public Dog(String n){
        name=n;
    }
    //咬刺猬
    public void bite1(Hedgehhog h){
        System.out.println("小狗"+name+"咬了刺猬"+h.name+"，无从下口");
    }
    public void bite2(KindMan m){
        System.out.println("小狗"+name+"咬了好人"+m.name+",留下千古恶名");
    }
    //狗咬狗
    public void bite3(Dog d){
        System.out.println("小狗"+name+"咬了小狗"+d.name+",咬下来一嘴毛");
    }
}
